package com.program.houai.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @version v1.0
 * @ProjectName: EOrder-master
 * @ClassName: MemberCardEntity
 * @Description: TODO(一句话描述该类的功能)
 * @Author: Topcheer
 * @Date: 2024/8/26 20:07
 */
@TableName("app_member_card")
@Data
@ApiModel(value ="会员卡表",description = "会员卡表表字段")
public class MemberCardEntity {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private int id;

    @ApiModelProperty(value = "会员卡名称")
    private String name;

    @ApiModelProperty(value = "会员卡级别(1白银2黄金3钻石)")
    private int level;

    @ApiModelProperty(value = "会员卡价格(分)")
    private int price;

    @ApiModelProperty(value = "会员卡有效期(天)")
    private int validityPeriod;

    @ApiModelProperty(value = "折扣率")
    private double discount;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createdate;

    @ApiModelProperty(value = "创建人")
    private String createby;

    @ApiModelProperty(value = "修改时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updatedate;

    @ApiModelProperty(value = "修改人")
    private String updateby;

    @ApiModelProperty(value = "删除时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date deletedate;

    @ApiModelProperty(value = "删除人")
    private String deleteby;

    @TableLogic
    private int deleteflag;

    @ApiModelProperty(value = "图片地址")
    @TableField(exist = false)
    private String url;

    @ApiModelProperty(value = "会员卡价格(分)-前端")
    @TableField(exist = false)
    private String priceStr;

}
